<?php

class ExtendedLoader extends CI_Loader {

    function __construct() {
        parent::__construct();
    }

    /**
     * Load View
     *
     * Anpassung der Loader Klasse, jetzt kann man auch einen alternativen Pfad zum View angeben!
     */
    function view($view, $vars = array(), $return = FALSE, $path = NULL) {

        $array = array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return);

        if (!is_null($path))
            $array['_ci_path'] = $path;

        return $this->_ci_load($array);
    }

    // --------------------------------------------------------------------
}